<!doctype html>



  


<html class="theme-next mist use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Jhin" />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.2" />






<meta name="description" content="ONex B2B2C 二次开发之写库操作业务场景二次开发：发布商品添加字段
过程首先，登录“商家中心”找到目标页：
/shop/item/add.html
那么对应的后台文件是哪里呢？ app/topshop 建议配置好二次开发目录。
好了，接下来把 topshop 整个copy到二次开发目录 custom 下，当然，也可以copy要改的文件，不过目录的层级一定要对应。">
<meta property="og:type" content="article">
<meta property="og:title" content="ONex B2B2C 二次开发 写库操作">
<meta property="og:url" content="http://jhin.oschina.io/ShopEX/2016-10-21-07.ONex B2B2C 二次开发之写库操作.html">
<meta property="og:site_name" content="Jhin">
<meta property="og:description" content="ONex B2B2C 二次开发之写库操作业务场景二次开发：发布商品添加字段
过程首先，登录“商家中心”找到目标页：
/shop/item/add.html
那么对应的后台文件是哪里呢？ app/topshop 建议配置好二次开发目录。
好了，接下来把 topshop 整个copy到二次开发目录 custom 下，当然，也可以copy要改的文件，不过目录的层级一定要对应。">
<meta property="og:updated_time" content="2016-12-22T01:45:29.802Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ONex B2B2C 二次开发 写库操作">
<meta name="twitter:description" content="ONex B2B2C 二次开发之写库操作业务场景二次开发：发布商品添加字段
过程首先，登录“商家中心”找到目标页：
/shop/item/add.html
那么对应的后台文件是哪里呢？ app/topshop 建议配置好二次开发目录。
好了，接下来把 topshop 整个copy到二次开发目录 custom 下，当然，也可以copy要改的文件，不过目录的层级一定要对应。">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Mist',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    }
  };
</script>




  <link rel="canonical" href="http://jhin.oschina.io/ShopEX/2016-10-21-07.ONex B2B2C 二次开发之写库操作.html"/>


  <title> ONex B2B2C 二次开发 写库操作 | Jhin </title>
</head>

<body itemscope itemtype="//schema.org/WebPage" lang="zh-Hans">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="//schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta custom-logo">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">Jhin</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Jhin(ijhin@sina.com)</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-thinkphp">
          <a href="/categories/ThinkPHP-DOC" rel="section">
            
            ThinkPHP
          </a>
        </li>
      
        
        <li class="menu-item menu-item-mysql">
          <a href="/categories/MySQL" rel="section">
            
            MySQL
          </a>
        </li>
      
        
        <li class="menu-item menu-item-php">
          <a href="/categories/PHP" rel="section">
            
            PHP
          </a>
        </li>
      
        
        <li class="menu-item menu-item-linux">
          <a href="/categories/Linux" rel="section">
            
            Linux
          </a>
        </li>
      
        
        <li class="menu-item menu-item-nginx">
          <a href="/categories/Nginx" rel="section">
            
            Nginx
          </a>
        </li>
      
        
        <li class="menu-item menu-item-html">
          <a href="/categories/HTML" rel="section">
            
            HTML5
          </a>
        </li>
      
        
        <li class="menu-item menu-item-javascript">
          <a href="/categories/JavaScript" rel="section">
            
            JavaScript
          </a>
        </li>
      
        
        <li class="menu-item menu-item-onex">
          <a href="/categories/ONEX" rel="section">
            
            ONEX
          </a>
        </li>
      
        
        <li class="menu-item menu-item-yii">
          <a href="/categories/Yii2" rel="section">
            
            Yii2
          </a>
        </li>
      
        
        <li class="menu-item menu-item-shopex">
          <a href="/categories/ShopEX" rel="section">
            
            ShopEX
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                ONex B2B2C 二次开发 写库操作
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2016-10-21T14:51:55+08:00" content="2016-10-21">
              2016-10-21
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/ShopEX/" itemprop="url" rel="index">
                    <span itemprop="name">ShopEX</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="ONex-B2B2C-二次开发之写库操作"><a href="#ONex-B2B2C-二次开发之写库操作" class="headerlink" title="ONex B2B2C 二次开发之写库操作"></a>ONex B2B2C 二次开发之写库操作</h2><h3 id="业务场景"><a href="#业务场景" class="headerlink" title="业务场景"></a>业务场景</h3><p>二次开发：发布商品添加字段</p>
<h3 id="过程"><a href="#过程" class="headerlink" title="过程"></a>过程</h3><p>首先，登录“商家中心”找到目标页：</p>
<p>/shop/item/add.html</p>
<p>那么对应的后台文件是哪里呢？ <code>app/topshop</code> 建议配置好二次开发目录。</p>
<p>好了，接下来把 <code>topshop</code> 整个copy到二次开发目录 <code>custom</code> 下，当然，也可以copy要改的文件，不过目录的层级一定要对应。</p>
<a id="more"></a>
<p>打开 <code>topshop/controller/item.php</code> </p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">public</span> <span class="function"><span class="keyword">function</span> <span class="title">add</span><span class="params">()</span></span></div><div class="line">&#123;</div><div class="line">    $pagedata[<span class="string">'shopCatList'</span>] = app::get(<span class="string">'topshop'</span>)-&gt;rpcCall(<span class="string">'shop.cat.get'</span>,<span class="keyword">array</span>(<span class="string">'shop_id'</span>=&gt;<span class="keyword">$this</span>-&gt;shopId,<span class="string">'fields'</span>=&gt;<span class="string">'cat_id,cat_name,is_leaf,parent_id,level'</span>));</div><div class="line">    $pagedata[<span class="string">'shopId'</span>] = <span class="keyword">$this</span>-&gt;shopId;</div><div class="line"></div><div class="line">    <span class="comment">// 获取物流模板列表</span></div><div class="line">    $tmpParams = <span class="keyword">array</span>(</div><div class="line">        <span class="string">'shop_id'</span> =&gt; <span class="keyword">$this</span>-&gt;shopId,</div><div class="line">        <span class="string">'status'</span> =&gt; <span class="string">'on'</span>,</div><div class="line">        <span class="string">'fields'</span> =&gt; <span class="string">'shop_id,name,template_id'</span>,</div><div class="line">    );</div><div class="line">    $pagedata[<span class="string">'dlytmpls'</span>] = app::get(<span class="string">'topshop'</span>)-&gt;rpcCall(<span class="string">'logistics.dlytmpl.get.list'</span>,$tmpParams);</div><div class="line"></div><div class="line">    <span class="keyword">$this</span>-&gt;contentHeaderTitle = app::get(<span class="string">'topshop'</span>)-&gt;_(<span class="string">'添加商品'</span>);</div><div class="line">    <span class="keyword">return</span> <span class="keyword">$this</span>-&gt;page(<span class="string">'topshop/item/edit.html'</span>, $pagedata);</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>看到，这里想必大家应该能想到看 <code>edit</code> 方法,</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">public</span> <span class="function"><span class="keyword">function</span> <span class="title">edit</span><span class="params">()</span></span></div><div class="line">&#123;</div><div class="line">    <span class="comment">//$pagedata['return_to_url'] = request::server('HTTP_REFERER');</span></div><div class="line">    $itemId = intval(input::get(<span class="string">'item_id'</span>));</div><div class="line">    $pagedata[<span class="string">'shopId'</span>] = <span class="keyword">$this</span>-&gt;shopId;</div><div class="line"></div><div class="line">    <span class="comment">// 店铺关联的商品品牌列表</span></div><div class="line">    <span class="comment">// 商品详细信息</span></div><div class="line">    $params[<span class="string">'item_id'</span>] = $itemId;</div><div class="line">    $params[<span class="string">'shop_id'</span>] = <span class="keyword">$this</span>-&gt;shopId;</div><div class="line">    $params[<span class="string">'fields'</span>] = <span class="string">"*,sku,item_store,item_status,item_count,item_desc,item_nature,spec_index"</span>;</div><div class="line">    $pagedata[<span class="string">'item'</span>] = app::get(<span class="string">'topshop'</span>)-&gt;rpcCall(<span class="string">'item.get'</span>,$params);</div><div class="line">    $pagedata[<span class="string">'item'</span>][<span class="string">'title'</span>] = $pagedata[<span class="string">'item'</span>][<span class="string">'title'</span>];</div><div class="line">    <span class="comment">// 商家分类及此商品关联的分类标示selected</span></div><div class="line">    $scparams[<span class="string">'shop_id'</span>] = <span class="keyword">$this</span>-&gt;shopId;</div><div class="line">    $scparams[<span class="string">'fields'</span>] = <span class="string">'cat_id,cat_name,is_leaf,parent_id,level'</span>;</div><div class="line">    $pagedata[<span class="string">'shopCatList'</span>] = app::get(<span class="string">'topshop'</span>)-&gt;rpcCall(<span class="string">'shop.cat.get'</span>,$scparams);</div><div class="line">    $selectedShopCids = explode(<span class="string">','</span>, $pagedata[<span class="string">'item'</span>][<span class="string">'shop_cat_id'</span>]);</div><div class="line">    <span class="keyword">foreach</span>($pagedata[<span class="string">'shopCatList'</span>] <span class="keyword">as</span> &amp;$v)</div><div class="line">    &#123;</div><div class="line">        <span class="keyword">if</span>($v[<span class="string">'children'</span>])</div><div class="line">        &#123;</div><div class="line">            <span class="keyword">foreach</span>($v[<span class="string">'children'</span>] <span class="keyword">as</span> &amp;$vv)</div><div class="line">            &#123;</div><div class="line">                <span class="keyword">if</span>(in_array($vv[<span class="string">'cat_id'</span>], $selectedShopCids))</div><div class="line">                &#123;</div><div class="line">                    $vv[<span class="string">'selected'</span>] = <span class="keyword">true</span>;</div><div class="line">                &#125;</div><div class="line">            &#125;</div><div class="line">        &#125;</div><div class="line">        <span class="keyword">else</span></div><div class="line">        &#123;</div><div class="line">            <span class="keyword">if</span>(in_array($v[<span class="string">'cat_id'</span>], $selectedShopCids))</div><div class="line">            &#123;</div><div class="line">                $v[<span class="string">'selected'</span>] = <span class="keyword">true</span>;</div><div class="line">            &#125;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">    <span class="comment">// 获取运费模板列表</span></div><div class="line">    $tmpParams = <span class="keyword">array</span>(</div><div class="line">        <span class="string">'shop_id'</span> =&gt; <span class="keyword">$this</span>-&gt;shopId,</div><div class="line">        <span class="string">'status'</span> =&gt; <span class="string">'on'</span>,</div><div class="line">        <span class="string">'fields'</span> =&gt; <span class="string">'shop_id,name,template_id'</span>,</div><div class="line">    );</div><div class="line">    $pagedata[<span class="string">'dlytmpls'</span>] = app::get(<span class="string">'topshop'</span>)-&gt;rpcCall(<span class="string">'logistics.dlytmpl.get.list'</span>,$tmpParams);</div><div class="line"></div><div class="line">    <span class="keyword">$this</span>-&gt;contentHeaderTitle = app::get(<span class="string">'topshop'</span>)-&gt;_(<span class="string">'添加商品'</span>);</div><div class="line">    <span class="keyword">return</span> <span class="keyword">$this</span>-&gt;page(<span class="string">'topshop/item/edit.html'</span>, $pagedata);</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>看完这里，我们看前台的模板对应的文件</p>
<p><code>topshop/view/item/edit.html</code> , 找到要添加的位置，放置自己的代码。<br><figure class="highlight html"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"form-group"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">label</span> <span class="attr">for</span>=<span class="string">""</span> <span class="attr">class</span>=<span class="string">"col-sm-2 control-label"</span>&gt;</span>货号：<span class="tag">&lt;/<span class="name">label</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"col-sm-3"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">name</span>=<span class="string">"item[bn]"</span> <span class="attr">maxlength</span>=<span class="string">"30"</span> <span class="attr">value</span>=<span class="string">"&lt;&#123;$item.bn&#125;&gt;"</span> <span class="attr">class</span>=<span class="string">"form-control"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"form-group"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">label</span> <span class="attr">for</span>=<span class="string">""</span> <span class="attr">class</span>=<span class="string">"col-sm-2 control-label"</span>&gt;</span>VIN：<span class="tag">&lt;/<span class="name">label</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"col-sm-3"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">name</span>=<span class="string">"item[vin]"</span> <span class="attr">maxlength</span>=<span class="string">"30"</span> <span class="attr">value</span>=<span class="string">"&lt;&#123;$item.vin&#125;&gt;"</span> <span class="attr">class</span>=<span class="string">"form-control"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div></pre></td></tr></table></figure></p>
<p>接下来，刷新页面，应该是可以看到 显示效果的。 VIN：<input type="text"></p>
<p>我们来添加数据，发现添加保存之后，编辑，对应的字段没有效果，OK，这是数据库没有字段。我们先去表 <code>sysitem_item</code> 添加上对应的字段。</p>
<p>然后，继续添加，发现还是没有数据？</p>
<p>这是为什么呢？代码里也没有看到 insert 等等的字样，但是别的数据还添加进去了。诡异？！ 难道是 API 的问题？不全是，也是有关系的。真正的罪魁祸首是 <code>dbschema</code> ！！！</p>
<p>我们找到跟商品有关的一个应用： <code>sysitem</code> 老办法，copy到二次开发目录。</p>
<p>在这个目录下面有个 <code>dbschema</code> 的目录，在里面有个 <code>item.php</code>的文件。</p>
<p>这个文件就是 定义 table <code>sysitem_item</code>的文件，你搜索一下，里面肯定是没有我们要添加的 vin 字段，怎么办，仿着 字段 <code>bn</code> 的格式，写一个就好了。</p>
<p>做好，保存。</p>
<p>接下来，我们再来前台添加 vin 的这个字段，保存，再编辑，就能看到数据了。</p>
<p>感兴趣的同学，可以仔细研究一下 ECSTORE 的 DBSCHEMA.</p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/ShopEX/2016-10-21-03.ONex B2B2C 二次开发之前台模板.html" rel="next" title="ONex B2B2C 二次开发 前台模板">
                <i class="fa fa-chevron-left"></i> ONex B2B2C 二次开发 前台模板
              </a>
            
          </div>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/ShopEX/2016-10-21-08.ONex B2B2C 二次开发之模板机制.html" rel="prev" title="ONex B2B2C 二次开发 模板机制">
                ONex B2B2C 二次开发 模板机制 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="//schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.gif"
               alt="Jhin" />
          <p class="site-author-name" itemprop="name">Jhin</p>
          <p class="site-description motion-element" itemprop="description">Jhin 开发文档小结</p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">22</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              
                <span class="site-state-item-count">3</span>
                <span class="site-state-item-name">分类</span>
              
            </div>
          

          

        </nav>

        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

      </section>

      
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">
            
              
            
            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#ONex-B2B2C-二次开发之写库操作"><span class="nav-number">1.</span> <span class="nav-text">ONex B2B2C 二次开发之写库操作</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#业务场景"><span class="nav-number">1.1.</span> <span class="nav-text">业务场景</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#过程"><span class="nav-number">1.2.</span> <span class="nav-text">过程</span></a></li></ol></li></ol></div>
            
          </div>
        </section>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Jhin</span>
</div>

<div class="powered-by">
  由 <a class="theme-link" href="/">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="/">
    NexT.Mist
  </a>
</div>

        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.2"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.0.2"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.0.2"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.2"></script>



  



  




  
  

  

  

  

  


</body>
</html>
